package com.example.tianyidemo.service.impl;


import com.example.tianyidemo.Mapper.SelectUserisMapper;

import com.example.tianyidemo.pojo.Post;
import com.example.tianyidemo.pojo.User;
import com.example.tianyidemo.service.SelectUsersService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SelectUsersimpl implements SelectUsersService {
    private static final Logger logger = LoggerFactory.getLogger(SelectUsersimpl.class);
    @Autowired
    private SelectUserisMapper selectUserisMapper;
    //    删除用户
    @Override
    public int delectuser(Integer userId) {
        int UserList = selectUserisMapper.delectuser(userId);
        return UserList;
    }
    @Override
    public List<User> getuserList() {
        List<User> UsersList = selectUserisMapper.getuserList();
        return selectUserisMapper.getuserList();
    }
    @Override
    public List<User> Selectuser(String user_name) {
        System.out.println(user_name);
        List<User> UsersList = selectUserisMapper.Selectuser(user_name);
        return UsersList;
    }
    @Override
    public List<Post> Selectusers(String user_name) {
        System.out.println(user_name);
        List<Post> UsersList = selectUserisMapper.Selectusers(user_name);
        return UsersList;
    }
}
